package com.dq.repository.user.centre;

import com.dq.domain.sys.user.user.BossUser;
import com.dq.domain.sys.user.user.base.SysUser;
import com.dq.domain.sys.user.user.centre.UserLable;
import com.dq.domain.sys.user.user.centre.UserLableCentre;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cf
 */
@Repository
public interface UserLableCentreRepository extends JpaRepository<UserLableCentre, Long> {
    List<UserLableCentre> findByDeletedFalseAndUserLableNameLikeAndUserLableType(String name, UserLable.LableType type);
    List<UserLableCentre> findByDeletedFalseAndSysUser(SysUser sysUser);
}
